package com.ad_hccm.service.impl.DiseaseHistory;

import com.ad_hccm.dao.DiseaseHistory.DiseaseHistoryDao;
import com.ad_hccm.domain.DiseaseHistory.DiseaseHistory;
import com.ad_hccm.service.DiseaseHistory.DiseaseHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 疾病史ServiceImpl
 */
@Service
public class DiseaseHistoryServiceImpl implements DiseaseHistoryService {
    @Autowired
    private DiseaseHistoryDao diseaseHistoryDao;

    @Override
    public boolean save(DiseaseHistory diseaseHistory) {
        return diseaseHistoryDao.save(diseaseHistory);
    }

    @Override
    public boolean update(DiseaseHistory diseaseHistory) {
        return diseaseHistoryDao.update(diseaseHistory);
    }

    @Override
    public DiseaseHistory getById(String id) {
        return diseaseHistoryDao.getById(id);
    }

    @Override
    public List<DiseaseHistory> getAll() {
        return diseaseHistoryDao.getAll();
    }
}
